import { Module } from '@nestjs/common';
import { RoleService } from './role.service';
import { RoleController } from './role.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Role } from './entities/role.entity';
import { User } from 'src/system/user/entities/user.entity';
import { UserRole } from '../user-role/entities/user-role.entity';
import { MenuModule } from '../menu/menu.module';
import { RoleMenuModule } from '../role-menu/role-menu.module';
import { RoleDeptModule } from '../role-dept/role-dept.module';
import { UserRoleModule } from '../user-role/user-role.module';

@Module({
  imports:[
    TypeOrmModule.forFeature([Role,User,UserRole]),
    MenuModule,
    RoleMenuModule,
    RoleDeptModule,
    UserRoleModule
  ],
  controllers: [RoleController],
  providers: [RoleService],
})
export class RoleModule {}
